package com.cmf.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @Author: cmf
 * @Date: 2025/8/27 18:15
 * @Version: v1.0.0
 * @Description: 员工状态枚举
 **/
@Getter
public enum EmployeeStatus {

    DISABLED(0, "禁用"),
    ENABLED(1, "启用");

    // 枚举值
    @EnumValue
    // 序列化时返回给前端的值
    @JsonValue
    private final Integer status;
    private final String desc;

    EmployeeStatus(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}